package com.egao.common.module.world.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.JsonResult;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.world.entity.WorldGame;
import com.egao.common.module.world.vo.WorldGamePubliclyVO;
import com.egao.common.module.world.vo.WorldGameVO;

import java.util.List;

/**
 * WorldGame Service
 * @author root
 */
public interface WorldGameService extends IService<WorldGame> {

    /**
     * 查询列表
     * @param page
     * @return
     */
    List<WorldGame> listPage(PageParam<WorldGame> page);

    /**
     * 添加济世杯
     * @param worldGame
     * @param loginUserId
     * @return
     */
    JsonResult insertWorldGame(WorldGame worldGame, Integer loginUserId);

    /**
     * 修改济世杯
     * @param worldGame
     * @return
     */
    JsonResult updateWorldGame(WorldGame worldGame);

    /**
     * 删除济世杯
     * @param worldGame
     * @return
     */
    JsonResult deleteWorldGame(WorldGame worldGame);

    /**
     * 查询公开列表
     * @param page
     * @return
     */
    List<WorldGamePubliclyVO> listPubliclyPage(PageParam<WorldGamePubliclyVO> page);

    /**
     * 更新点击量
     * @param worldGame worldGame
     */
    void updateHits(WorldGame worldGame);
}
